package org.example.controller;

import org.example.internalCommon.dto.ResponseResult;
import org.example.internalCommon.request.ForecastPriceDTO;
import org.example.service.DriectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/direction")
public class DriectionControllde {

    @Autowired
    private DriectionService driectionService;

    @PostMapping("/driving")
    public ResponseResult driving(@RequestBody ForecastPriceDTO forecastPriceDTO){
        return driectionService.driving(forecastPriceDTO);
    }
}
